home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / Dev / Meshwriter / utilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-03  |  2.6 KB  |  63 lines

  1. /*
  2. **      $VER: utilities.h 1.00 (13.02.1999)
  3. **
  4. **      Creation date : 02.01.1999
  5. **
  6. **      Description       :
  7. **         Standart saver module for meshwriter.library.
  8. **         Saves the mesh as Reflections file.
  9. **
  10. **
  11. **      Written by Stephan Bielmann
  12. **
  13. */
  14.  
  15. #ifndef INCLUDE_UTILITIES_H
  16. #define INCLUDE_UTILITIES_H
  17.  
  18. /*************************** Includes *******************************/
  19.  
  20. /*
  21. ** Amiga includes
  22. */
  23. #include <exec/types.h>
  24.  
  25. /*************************** Functions ******************************/
  26.  
  27. /********************************************************************\
  28. *                                                                    *
  29. * Name         : setUBYTEArray                                       *
  30. *                                                                    *
  31. * Description  : Copies an array of n UBYTEs into another one.       *
  32. *                                                                    *
  33. * Arguments    : array IN/OUT: The array to copy into.               *
  34. *                text  IN    : Text to copy into the array.          *
  35. *                size  IN    : Size of output array.                 *
  36. *                                                                    *
  37. * Comment      :                                                     *
  38. *                                                                    *
  39. \********************************************************************/
  40. extern VOID setUBYTEArray(UBYTE *array,STRPTR text,ULONG size);
  41.  
  42. /********************************************************************\
  43. *                                                                    *
  44. * Name         : stringlen                                           *
  45. *                                                                    *
  46. * Description  : Returns the length of a '\0' terminated string.     *
  47. *                                                                    *
  48. * Arguments    : string IN  : String to process.                     *
  49. *                                                                    *
  50. * Return Value : Lenght of the string.                               *
  51. *                                                                    *
  52. * Comment      : To prevent endless loops if no '\0' is found, the   *
  53. *                lenght is limited to 10000.                         *
  54. *                                                                    *
  55. \********************************************************************/
  56. extern ULONG stringlen (STRPTR string);
  57.  
  58. #endif
  59.  
  60. /************************* End of file ******************************/
  61.  
  62.  
  63.